#include "Sa2dDom.h"

performer::performer(){
	myrender = new render();
}

const int performer::getDim() {
	return dim;
}

const int performer::getIterations() {
	return iterations;
}

const int performer::getMax_substeps() {
	return max_substeps;
}

render* performer::getRender() {
	return myrender;
}

const string performer::getName() {
	return name;
}

const double performer::getTotal_time() {
	return total_time;
}

void performer::setDim(int dim) {
	this->dim = dim;
}

void performer::setIterations(int iterations) {
	this->iterations = iterations;
}

void performer::setMax_substeps(int max_substeps) {
	this->max_substeps = max_substeps;
}

void performer::setName(string name) {
	this->name = name;
}

void performer::setTotal_time(double total_time) {
	this->total_time = total_time;
}

string performer::toString(int indent) {
	string tabs = this->getIndent(indent);
	stringstream returnString;
	returnString << tabs << "perfomer:\n";
	returnString << tabs << "name: " << name << "\n";
	returnString << tabs << "dim: " << dim << "\n";
	returnString << tabs << "iterations : " << iterations << "\n";
	returnString << tabs << "total time: " << total_time << "\n";
	returnString << tabs << "max sub steps: " << max_substeps << "\n";
	returnString << "\n" << myrender->toString(indent+1);
	return returnString.str();
}

performer::~performer(){
	delete myrender;
}
